import Vue from "vue";
import Router from "vue-router";
import ProductManagement from "../views/ProductManagement.vue";
import UserManagement from "../views/UserManagement.vue";
import OrderManagement from "../views/OrderManagement.vue";
import Sidebar from "@/views/Sidebar";

Vue.use(Router);

export default new Router({
  mode:"history",
  routes: [
    {
      path: "/",
      name: "Menu",
      component: Sidebar,
      children:[
        {
          path: "/product-management",
          name: "product-management",
          component: ProductManagement,
        },
        {
          path: "/user-management",
          name: "user-management",
          component: UserManagement,
        },
        {
          path: "/order-management",
          name: "order-management",
          component: OrderManagement,
        }



      ]
    }
  ],
});
